package com.itheima.method;

public class MethodDemo4 {
    public static void main(String[] args) {
        printOddNumber(5,10);
    }
    public static void printOddNumber(int n,int m){
        System.out.println(n+"到"+m+"之间的基数为:");
        for (int i = n; i <=m ; i++) {
            if(i%2>0){
                System.out.println(i);
            }
        }
    }
}
